package de.ryancarmon.validator;

public enum ValidatorParam {
	NOT_NULL, NOT_EMPTY, NOT_EMPTY_TRIM, EQUALS(true, true), EQUALS_NOCASE(
			true, true), MIN_LENGTH(true, true), MIN_LENGTH_TRIM(true, true), MAX_LENGTH(
			true, true), MAX_LENGTH_TRIM(true, true), OF_CLASS(true, true), LESS(
			true, true), GREATER(true, true);

	private boolean hasVar;
	private boolean required;

	private ValidatorParam() {
		this(false);
	}

	private ValidatorParam(boolean hasVar) {
		this(hasVar, false);
	}

	private ValidatorParam(boolean hasVar, boolean required) {
		this.hasVar = hasVar;
		this.required = required;
	}

	public boolean hasVar() {
		return hasVar;
	}

	public boolean isRequired() {
		return required;
	}
}